package com.example.codereadingspringsecurity.controller;

import com.example.codereadingspringsecurity.TestService;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zhoushen
 * @since 2021/3/12
 */
@RestController
@RequestMapping("/test")
public class TestController {

    private TestService testService;

    public TestController(TestService testService) {
        this.testService = testService;
    }


    @GetMapping
    public String get(){
        return testService.gg();
    }

}
